package com.dream.root.user.config.async;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * AsyncTasks Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 28/07/2018
 * Time: 02:53
 * Description: AsyncTasks
 */
@Slf4j
@Component
public class AsyncTasks {

    @Async("commonAsyncTask")
    public void test() throws InterruptedException {
        Thread.sleep(5000L);
        log.info("test async task");
    }
}
